<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>findIndex方法</title>
</head>
<body>
<script type="text/javascript">
    let ary = [10, 20, 50];
    let index = ary.findIndex(item => item > 15);
    console.log(index)
</script>
</body>
</html>
